package cn.myfirefly.moming.common.entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import cn.myfirefly.core.entity.BasePO;

@Entity
@Table(name = "mm_staff")
public class MMStaff extends BasePO implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 785262397279014160L;
	private Integer staffSn;
	private Integer userSn;
	private String staffNo;
	private String name;
	private String nickName;
	private char sex;
	private String email;
	private String address;
	private String phoneNo;
	private Character highestEducation;
	private String graduatedFrom;
	private String profession;
	private Character credentialType;
	private String credentialNo;
	private String position;
	private Character userStatus;
	private Date joinDate;

	public MMStaff() {
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "staff_sn", unique = true, nullable = false)
	public Integer getStaffSn() {
		return this.staffSn;
	}
	
	public void setStaffSn(Integer staffSn) {
		this.staffSn = staffSn;
	}
	
	@Column(name = "user_sn")
	public Integer getUserSn() {
		return this.userSn;
	}

	public void setUserSn(Integer userSn) {
		this.userSn = userSn;
	}

	@Column(name = "staff_no", nullable = false, length = 32)
	public String getStaffNo() {
		return this.staffNo;
	}

	public void setStaffNo(String staffNo) {
		this.staffNo = staffNo;
	}

	@Column(name = "name", nullable = false, length = 32)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "nick_name", length = 32)
	public String getNickName() {
		return this.nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	@Column(name = "sex", nullable = false, length = 1)
	public char getSex() {
		return this.sex;
	}

	public void setSex(char sex) {
		this.sex = sex;
	}

	@Column(name = "email", length = 100)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "address", length = 200)
	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name = "phone_no", length = 20)
	public String getPhoneNo() {
		return this.phoneNo;
	}

	public void setPhoneNo(String phoneNo) {
		this.phoneNo = phoneNo;
	}

	@Column(name = "highest_education", length = 1)
	public Character getHighestEducation() {
		return this.highestEducation;
	}

	public void setHighestEducation(Character highestEducation) {
		this.highestEducation = highestEducation;
	}

	@Column(name = "graduated_from", length = 100)
	public String getGraduatedFrom() {
		return this.graduatedFrom;
	}

	public void setGraduatedFrom(String graduatedFrom) {
		this.graduatedFrom = graduatedFrom;
	}

	@Column(name = "profession", length = 32)
	public String getProfession() {
		return this.profession;
	}

	public void setProfession(String profession) {
		this.profession = profession;
	}

	@Column(name = "credential_type", length = 1)
	public Character getCredentialType() {
		return this.credentialType;
	}

	public void setCredentialType(Character credentialType) {
		this.credentialType = credentialType;
	}

	@Column(name = "credential_no", length = 64)
	public String getCredentialNo() {
		return this.credentialNo;
	}

	public void setCredentialNo(String credentialNo) {
		this.credentialNo = credentialNo;
	}

	@Column(name = "position", length = 32)
	public String getPosition() {
		return this.position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	@Column(name = "user_status", length = 1)
	public Character getUserStatus() {
		return this.userStatus;
	}

	public void setUserStatus(Character userStatus) {
		this.userStatus = userStatus;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "join_date", nullable = true)
	public Date getJoinDate() {
		return joinDate;
	}

	public void setJoinDate(Date joinDate) {
		this.joinDate = joinDate;
	}
}
